import { MediaQueue } from "@/api/service/lcd-device/types";
import { ENUM_DATA_SCOPE } from "@/enum/system.enum";
import { useQuery, useTable } from "@/hook/useTableConfig";

export const table = useTable<MediaQueue>();

// 查询参数
export const query = useQuery<Partial<MediaQueue>>({
  orderByColumn: "send_time",
  isAsc: "desc",
  mediaId: "",
  batchName: "",
  pageSize: 20,
  scope: ENUM_DATA_SCOPE.THIS_AND_ALL_SUB
});

// 已选中的元素数组
export const keys = ref<string[]>([]);

export const queueGroup = useTable();

export const displayDetail = ref(false);
